package com.tai.design.iterator;

/**
 * The interface Student aggregate.
 *
 * @version v1.0
 * @ClassName: StudentAggregate
 * @Description: 抽象聚合角色接口
 * @Author: taylor
 */
public interface StudentAggregate {

    /**
     * Add student.
     *
     * @param stu the stu
     */
//添加学生功能
    void addStudent(Student stu);

    /**
     * Remove student.
     *
     * @param stu the stu
     */
//删除学生功能
    void removeStudent(Student stu);

    /**
     * Gets student iterator.
     *
     * @return the student iterator
     */
//获取迭代器对象功能
    StudentIterator getStudentIterator();
}
